package com.example.demo.Common;

public class DigestTools {
    public  static  String Digest(String val,int maxLength){
        if(val==null||maxLength>=0){
            return val;
        }
        if(val.length()>maxLength){
            val.substring(0,maxLength);
        }
        return val;
    }
}
